package org.tsinghua.blockchain.entity;

import java.io.Serializable;
import java.util.List;
import java.util.TreeMap;

public class RecordInfo extends TransactionContentInfo implements Serializable {
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private Long version;
	private String typeHash;
	private TreeMap<String, Object> recordContent = new TreeMap<String, Object>();
	private String referToTxHash;
	private List<String> authorizedUpdaters = null;

	public RecordInfo(String typeHash, TreeMap<String, Object> recordContent, String referToTxHash,
			List<String> authorizedUpdaters) {
		this.version = Long.valueOf(0L);
		this.typeHash = typeHash;
		this.recordContent = recordContent;
		this.referToTxHash = referToTxHash;
		this.authorizedUpdaters = authorizedUpdaters;
	}

	public Long getVersion() {
		return this.version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	public String getTypeHash() {
		return this.typeHash;
	}

	public void setTypeHash(String typeHash) {
		this.typeHash = typeHash;
	}

	public TreeMap<String, Object> getRecordContent() {
		return this.recordContent;
	}

	public void setRecordContent(TreeMap<String, Object> recordContent) {
		this.recordContent = recordContent;
	}

	public String getReferToTxHash() {
		return this.referToTxHash;
	}

	public void setReferToTxHash(String referToTxHash) {
		this.referToTxHash = referToTxHash;
	}

	public List<String> getAuthorizedUpdaters() {
		return this.authorizedUpdaters;
	}

	public void setAuthorizedUpdaters(List<String> authorizedUpdaters) {
		this.authorizedUpdaters = authorizedUpdaters;
	}
}
